package com.sc.nft.vo.points;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.sc.nft.enums.UserPointsOperateEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author JYT
 * @create 2024/5/14 10:31
 */
@Data
public class PointsRecordsPageVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型  BUY_SELF  消费-自购,BUY_FRIEND  消费-好友下单,INVITE_REGISTER  邀请-好友注册,OFFICIAL_GIFT  官方赠送,OFFICIAL_TAKE_OUT  官方扣除,EXCHANGE_GOODS  兑换-兑换卡,REFUND_SELF  退款-自购,REFUND_FRIEND  退款-好友下单,EXPIRE  积分过期")
    private UserPointsOperateEnum operateType;
    /**
     * 积分变动
     */
    @ApiModelProperty(value = "积分变动")
    private BigDecimal points;
    /**
     * 变动时间
     */
    @ApiModelProperty(value = "变动时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime createTime;
}
